package ru.gerunn;

import jcifs.smb.SmbException;
import jcifs.smb.SmbFile;
import jcifs.smb.SmbFilenameFilter;

public class LogFilter implements SmbFilenameFilter {
	
	private String prefix;
	
	LogFilter(String prefix) {
		this.prefix = prefix;
	}
	
	public boolean accept(SmbFile dir, String name) throws SmbException {
		return name.startsWith(this.prefix);
	}
}
